package com.example.demo.activiti;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.activiti.engine.impl.el.FixedValue;
import org.activiti.engine.impl.el.JuelExpression;

/**
 * @author LIN
 * @date 2022-10-05 12:54
 */
public class ExecuteListener implements ExecutionListener {

    private FixedValue var2;

    private JuelExpression secondVar;

    public JuelExpression getSecondVar() {
        return secondVar;
    }

    public void setSecondVar(JuelExpression secondVar) {
        this.secondVar = secondVar;
    }

    public FixedValue  getVar2() {
        return var2;
    }

    public void setVar2(FixedValue  var2) {
        this.var2 = var2;
    }

    @Override
    public void notify(DelegateExecution execution) throws Exception {
        System.out.println(execution);
    }
}
